import { io } from "socket.io-client";

const socket = io(import.meta.env.PROD ? 'https://113.45.133.121' : 'http://localhost:3000', {
  reconnection: true,
  reconnectionAttempts: 5,
  withCredentials: true,
  transports: ["websocket", "polling"],
});

export default socket;
